package com.drop.service;

import com.drop.common.EasyUIDataGridResult;
import com.drop.common.MyCart;
import com.drop.entity.Order;

/**
 * 订单服务层
 * Created by 陈东一 on 2017/9/24 15:31
 */
public interface OrderService {

	/**
	 * 创建订单返回订单id
	 * @param userId
	 * @param goodsId
	 * @param isselect
	 * @param quantity
	 * @return
	 * @throws Exception
	 */
	public int addOrder(int userId,String[] goodsId,String[] isselect,String[] quantity) throws Exception;


	/**
	 * 更新订单状态
	 * @param id
	 * @param state
	 * @return
	 * @throws Exception
	 */
	public Order updateOrder(int id,int state,String address) throws Exception;


	/**
	 * 获取订单信息
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Order showOrder(int id) throws Exception;


	/**
	 * 显示所有订单
	 * @param shipid
	 * @param page
	 * @param rows
	 * @return
	 */
	public EasyUIDataGridResult showAllOrder(int shipid, String page, String rows) throws Exception;

	/**
	 * 修改订单状态
	 * @param ids
	 * @param state
	 * @return
	 */
	public MyCart updateOrder(String ids,int state) throws Exception;


	/**
	 * 修改订单地址
	 * @param id
	 * @param address
	 * @return
	 * @throws Exception
	 */
	public MyCart updateOrder(String id,String address) throws Exception;


	/**
	 * 删除订单
	 * @param orderId
	 * @return
	 */
	public MyCart deleteOrder(String orderId);
}
